﻿@model IEnumerable<System.Web.Http.Description.ApiDescription>
@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<ul>
    @foreach (var api in Model)
    {
        <li>
            <h5>@api.HttpMethod @api.RelativePath</h5>
            <blockquote>
                <p>@api.Documentation</p>
                @if (api.ParameterDescriptions.Count > 0)
                {
                    <h6>
                        Parameters</h6>
                    <ul>
                        @foreach (var parameter in api.ParameterDescriptions)
                        {
                            <li>@parameter.Name: @parameter.Documentation (@parameter.Source)</li>
                        }
                    </ul>
                }
            </blockquote>
        </li>
    }
</ul>